<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table width="100%" height="100%">
<tr>
	<td valign="top">
		<s:if test="%{role==0}">
			<jsp:include page="../readhead.jsp"/>
		</s:if>
		<s:elseif test="%{role==1}">
			<jsp:include page="../writehead.jsp"/>
		</s:elseif>
		<s:elseif test="%{role==2}">
			<jsp:include page="../head.jsp"/>
		</s:elseif>
	</td>
</tr>
</table>

<s:form id="userProfile" action="modifyUserAction" method="post">
		<s:property value="用户名：%{modifiedUser.username}"/>
		<s:property value="姓名    ：%{modifiedUser.name}"/>
		用户名： ${modifiedUser.username}<br/>
		姓名     ：${modifiedUser.name}<br/>
		<s:hidden value="%{modifiedUser.userId}" name="modifiedUser.userId"/>
		<s:hidden value="%{modifiedUser.username}" name="modifiedUser.username"/>
		<s:hidden value="%{modifiedUser.name}" name="modifiedUser.name"/>
		<s:hidden value="%{modifiedUser.password}" name="modifiedUser.password"/>
		<s:hidden value="%{modifiedUser.validate}" name="modifiedUser.validate"/>
		<s:textfield id="job" name="modifiedUser.job" value="%{modifiedUser.job}" label="职位"/>
		<s:textfield id="phone" name="modifiedUser.phone" value="%{modifiedUser.phone}" label="电话"/>
		<s:radio label="权限" id="grade" name="modifiedUser.grade" list="#{0:'普通用户(只有读取用户数据的权利); ',1:'高级用户(拥有添加修改用户信息的权利); ',2:'管理员'}" value="%{modifiedUser.grade}"/>
		<s:submit value=" 提交 "/>
	</s:form>
	
</body>
</html>